.class public Ldata/MapData;
.super Landroid/widget/BaseAdapter;
.source "MapData.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldata/MapData$ViewHolder;
    }
.end annotation


# instance fields
.field c:Landroid/content/Context;

.field h:Landroid/os/Handler;

.field lf:Landroid/view/LayoutInflater;

.field ls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/baidu/mapapi/search/core/PoiInfo;",
            ">;"
        }
    .end annotation
.end field

.field m:Lmyapp/MyApp;

.field private mListView:Landroid/widget/ListView;

.field showdel:Z

.field showdisticnt:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Landroid/content/Context;Landroid/widget/ListView;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .param p3, "cc"    # Landroid/content/Context;
    .param p4, "dd"    # Landroid/widget/ListView;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lcom/baidu/mapapi/search/core/PoiInfo;",
            ">;",
            "Landroid/content/Context;",
            "Landroid/widget/ListView;",
            ")V"
        }
    .end annotation

    .prologue
    .line 53
    .local p2, "list":Ljava/util/List;, "Ljava/util/List<Lcom/baidu/mapapi/search/core/PoiInfo;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 54
    check-cast p3, Lmyapp/MyApp;

    .end local p3    # "cc":Landroid/content/Context;
    iput-object p3, p0, Ldata/MapData;->m:Lmyapp/MyApp;

    .line 55
    iput-object p1, p0, Ldata/MapData;->c:Landroid/content/Context;

    .line 56
    iput-object p2, p0, Ldata/MapData;->ls:Ljava/util/List;

    .line 57
    iput-object p4, p0, Ldata/MapData;->mListView:Landroid/widget/ListView;

    .line 58
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Ldata/MapData;->ls:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "position"    # I

    .prologue
    .line 69
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "position"    # I

    .prologue
    .line 75
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 82
    const/4 v1, 0x0

    .line 83
    .local v1, "vh":Ldata/MapData$ViewHolder;
    if-nez p2, :cond_0

    .line 84
    const-string v2, "\u5f53\u524d\u884c\u6570"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 85
    new-instance v1, Ldata/MapData$ViewHolder;

    .end local v1    # "vh":Ldata/MapData$ViewHolder;
    invoke-direct {v1, p0}, Ldata/MapData$ViewHolder;-><init>(Ldata/MapData;)V

    .line 86
    .restart local v1    # "vh":Ldata/MapData$ViewHolder;
    iget-object v2, p0, Ldata/MapData;->c:Landroid/content/Context;

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    .line 87
    const v3, 0x7f030054

    const/4 v4, 0x0

    .line 86
    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 88
    const v2, 0x7f0c0061

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ldata/MapData$ViewHolder;->name:Landroid/widget/TextView;

    .line 89
    const v2, 0x7f0c0225

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ldata/MapData$ViewHolder;->address:Landroid/widget/TextView;

    .line 91
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 96
    :goto_0
    iget-object v2, p0, Ldata/MapData;->ls:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/search/core/PoiInfo;

    .line 97
    .local v0, "bb":Lcom/baidu/mapapi/search/core/PoiInfo;
    iget-object v2, v1, Ldata/MapData$ViewHolder;->name:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->name:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 98
    iget-object v2, v1, Ldata/MapData$ViewHolder;->address:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->address:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 99
    return-object p2

    .line 93
    .end local v0    # "bb":Lcom/baidu/mapapi/search/core/PoiInfo;
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    .end local v1    # "vh":Ldata/MapData$ViewHolder;
    check-cast v1, Ldata/MapData$ViewHolder;

    .restart local v1    # "vh":Ldata/MapData$ViewHolder;
    goto :goto_0
.end method
